var express = require("express");
var app = express();
var Controller = require("./Controllers/Controller.js");

//配置模板引擎
app.set("view engine","ejs");
//路由表，中间件
app.get("/",Controller.showIndex);
app.get("/:number",Controller.showResult);
//配置静态资源文件
app.use(express.static("public"));
app.listen(3000);